<extend name="Base/common"/>

<block name="style">
<link href="__CSS__/stylesheet.css" rel="stylesheet">
<link href="__CSS__/user.css" rel="stylesheet">
</block>

<block name="header">
<header>
	<include file="User/header" />
</header>
</block>
<block name="body">
<div class="container main">
	<div class="user-main">
		<div class="col-xs-3">
			<include file="Identify/left_menu" />
		</div>
		<div class="col-xs-9">
			<h5>订单详情</h5>
			<div class="content order">
				<div class="status"><label>当前订单状态：</label><span class="stat">{$info.short_order}</span><span class="short-stat">（{$info.short_order}）</span></div>
				<div class="panel">
					<h5>物流信息</h5>
					<div class="panel-main">
					<notempty name='shipping_info'>
						<p>物流公司：{$shipping_info.shipping_company}</p>
						<p>运单号码：{$shipping_info.shipping_code}</p>
						<p>物流跟踪：</p>
						<div class="ship-logs">
						<!-- 
						<p>2015-10-21 16:48:18<span class="text">您的订单开始处理</span></p>
						-->
						<notempty name="seller_shipping.shipping.data">
								<volist name="seller_shipping.shipping.data" id="shipping">
								<p>{$shipping.time}<span class="text">{$shipping.content}</span></p>
								</volist>
							<else/>
								<p>无记录</p>
							</notempty>
						</div>
					<else />
						<p>未发货</p>
					</notempty>
						
					</div>
				</div>
				<div class="panel">
					<h5>订单信息</h5>
					<div class="panel-main">
						<div class="order-info">
							<div class="order-info-label">收货地址：</div>
							<div class="order-info-text">{$info.consignee}，{$info.mobile}，{$info.address_full}</div>
						</div>
						<div class="order-info">
							<div class="order-info-label">订单信息：</div>
							<div class="order-info-text">
								<div class="col-xs-4">订单编号：{$info.checkup_no}</div>
								<div class="col-xs-4">创建时间：{$info.create_time|time_format=###,'Y-m-d H:m'}</div>
								<notempty name="info['pay_time']">
								 <div class="col-xs-4">付款时间：{$info.pay_time|time_format=###,'Y-m-d H:m'}</div>
								 </notempty>
								<!-- 
								<div class="col-xs-4">发货时间：2015-10-21 16:59:00</div>
								<div class="col-xs-4">收货时间：2015-10-23 16:49:00</div>
								 -->
								 <notempty name="shipping_info">
								 <div class="col-xs-4">发货时间：{$info.shipping_time|time_format=###,'Y-m-d H:m'}</div>
								 </notempty>
							</div>
						</div>
					</div>
				</div>
				<div class="product-list">
					<div class="hd">
						<ul class="table">
							<li>商品信息</li>
							<li>价格</li>
							<li>数量</li>
							<li>实付款</li>
							<li>状态</li>
							<li>操作</li>
						</ul>
					</div>
					<div class="bd">
						<ul class="p-list">
							<li>
								<ul class="table">
									<li>
										<a href="javascript:;" class="thumb"><img src="__ROOT__{$info.image_path}"></a>
										<a href="javascript:;">{$info.title}</a>
									</li>
									<li>￥{$info.identify_price}</li>
									<li>{$info.quantity}</li>									
									<li>
										<p class="order-sfk"><em class="yen">￥</em><em class="price">{$info.total}</em></p>
										<p class="order-jdf">含保真鉴定服务费：{$info.identify_price|number_format=###,2}</p>
									</li>
									<li><p class="order-status">{$info.short_order}</p></li>
									<li class="order-action">
										<eq name="info['status']" value="0" type="eq">												
												<a href="{:U('pay',array('checkupid'=>$info['id'],'checkupno'=>$volist['checkup_no']))}" class="btn">付款</a>
												<a href="{:U('AjaxAction/delCheckup',array('checkupid'=>$info['id']))}" class="btn cancel ajax-get">删除</a>
										</eq>
										<eq name="info['status']" value="1" type="gt">
											<eq name="info['status']" value="4" type="lt">
												<a href="{:U('AjaxAction/checkupConfirm',array('checkupid'=>$info['id']))}" class="btn">收货</a>
											</eq>
										</eq>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</block>

<block name="script">
<script type="text/javascript">
highlight_leftnav("{:U('Identify/index')}");
highlight_subnav("{:U('Identify/index')}");
</script>
</block>